import request from '@/utils/request'
/**
 * 获取频道的
 *
 */
export const getAllChannels = () => {
  return request({
    method: 'GET',
    url: '/v1_0/channels',
  })
}

export const addAllChannels = data => {
  return request({
    method: 'PATCH',
    url: '/v1_0/user/channels',
    data: {
      channels: [data],
    },
  })
}

export const delUserChannels = id => {
  return request({
    method: 'DELETE',
    url: '/v1_0/user/channels/' + id,
  })
}
